﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business.Common.Service.Response
{
    public class ResponseError
    {
        public string Description { get; set; }
        public string Title { get; set; }

        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return false;
            }

            // If parameter cannot be cast to Point return false.
            ResponseError responseError = obj as ResponseError;
            if ((System.Object)responseError == null)
            {
                return false;
            }

            // Return true if the fields match:
            return responseError.Description.Equals(this.Description);
        }
    }
}
